            
class AuthRoleController {

    static authorize = "admin"
    
    def index = { redirect(action:list,params:params) }

    // the delete, save and update actions only accept POST requests
    def allowedMethods = [delete:'POST', save:'POST', update:'POST']

    def list = {
        if(!params.max)params.max = 10
        [ roleList: AuthRole.list( params ) ]
    }

    def show = {
        [ role : AuthRole.get( params.id ) ]
    }

}